Golang - Hello World!


不免俗的第一篇當然就是要來 Run Hello World 啊。


main.go

package main

import "fmt"

func main() {
    fmt.Println("Hello World!")
}

直接 Run

$ go run main.go

Build 執行檔

$ go build main.go
$ ./main
#golang #GO







你可能感興趣的文章

AppWorks School Batch #16 Front-End Class 學習筆記&心得(駐點階段五:求職就業+畢業)

AppWorks School Batch #16 Front-End Class 學習筆記&心得(駐點階段五:求職就業+畢業)

Git error -> fatal: the remote end hung up unexpectedly

Git error -> fatal: the remote end hung up unexpectedly

Spread Operator 與 Rest Parameters 與 Default Parameters

Spread Operator 與 Rest Parameters 與 Default Parameters






留言討論